import Vue from 'vue'

export default {
  /**
   * 添加试管详情
   *
   * @param {*} [params={}]
   * @param {*} [config={}]
   * @returns
   */
  async addTestTubeInfo(params = {}, config = {}) {
    let result = await Vue.http.post('/MedicalRecordTestTubeInfo/AddTestTubeInfo', params, config);
    return result;
  },
  /**
   * 通过编号获取试管详情
   *
   * @param {*} [params={}]
   * @param {*} [config={}]
   * @returns
   */
  async getTubeInfoByID(params = {}, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordTestTubeInfo/GetTubeInfoByID', config);
    return result;
  },
  /**
   * 通过用户编号获取试管详情
   *
   * @param {*} [params={}]
   * @param {*} [config={}]
   * @returns
   */
  async getTestTubeInfoListByUserID(params = {}, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordTestTubeInfo/GetTestTubeInfoListByUserID', config);
    return result;
  },
  /**
   * 更新试管详情
   *
   * @param {*} [params={}]
   * @param {*} [config={}]
   * @returns
   */
  async updateTestTubeInfo(params = {}, config = {}) {
    let result = await Vue.http.put('/MedicalRecordTestTubeInfo/UpdateTestTubeInfo', params, config);
    return result;
  }
}
